package com.aischool.service;

import java.util.List;

import com.aischool.common.model.SysRole;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class SysRoleService {

	public SysRole dao = new SysRole().dao();
	
	public final String CK_CacheName = "CacheRole";
	public final String CK_Sys_Role_All = "CK_Sys_Role_All";
	
	/**
	 * 获取全部数据
	 * @return
	 */
	public List<Record> getSysRoleAll(){
		return Db.findByCache(CK_CacheName, CK_Sys_Role_All, "SELECT * FROM sys_role ORDER BY role_id");
	}
}
